<?php $homeUrl = Yii::app()->baseUrl;?>
<?php Yii::app()->getClientScript()->registerCoreScript('jquery'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <!-- start: Meta -->
    <meta charset="utf-8" />
    <title>HAIAUMAIL</title>
    <meta name="description" content="Haiaumail" />
    <meta name="author" content="HAIAUSOFT" />
    <meta name="keyword" content="Email marketing, gui mail hang loat, quang cao email" />
    <!-- end: Meta -->
    
    <!-- start: Mobile Specific -->
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <!-- end: Mobile Specific -->
    
    <!-- start: CSS -->
    <link href="<?php echo $homeUrl;?>/css/bootstrap.min.css" rel="stylesheet" />
    <link href="<?php echo $homeUrl;?>/css/bootstrap-responsive.min.css" rel="stylesheet" />
    <link href="<?php echo $homeUrl;?>/css/style.min.css" rel="stylesheet" />
    <link href="<?php echo $homeUrl;?>/css/style-responsive.min.css" rel="stylesheet" />
    <link href="<?php echo $homeUrl;?>/css/retina.css" rel="stylesheet" />
    <link href="<?php echo $homeUrl;?>/css/bootstrap_custom.css" rel="stylesheet" />
    <link href="<?php echo $homeUrl;?>/css/custom.css" rel="stylesheet" />
    <!-- end: CSS -->
    

    <!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <link id="ie-style" href="css/ie.css" rel="stylesheet">
    <![endif]-->
    
    <!--[if IE 9]>
        <link id="ie9style" href="<?php echo $homeUrl;?>/css/ie9.css" rel="stylesheet">
    <![endif]-->
    
    <!-- start: Favicon and Touch Icons -->
    <link rel="shortcut icon" href="<?php echo $homeUrl;?>/ico/favicon.png" />
    <!-- end: Favicon and Touch Icons -->   
        
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>

<body>
    <!-- start: Header -->
    <div class="navbar">
        <div class="navbar-inner">
            <div class="container-fluid">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <a id="main-menu-toggle" class="hidden-phone open"><i class="icon-reorder"></i></a>     
                <div class="row-fluid">
                <a class="brand span2" href="index.html"><h1 id="logo">Haiaumail</h1></a>
                </div>

                <!-- BEGIN HeaderMenuWidget -->
                <?php $this->widget('HeaderMenuWidget'); ?>
                <!-- END HeaderMenuWidget -->
            </div>
        </div>
    </div>
    <!-- start: Header -->
    
        <div class="container-fluid-full">
        <div class="row-fluid">
                
            <!-- start: Main Menu -->
            <div id="sidebar-left" class="span2">
                
                <!-- BEGIN Widget SearchBoxWidget -->
                <?php $this->widget('SearchBoxWidget'); ?>
                <!-- END Widget SearchBoxWidget -->

                <!-- Begin Widget MenuLeftWidget -->
                <?php $this->widget('MenuLeftWidget'); ?>
                <!-- END Widget Sidebar-nav -->
            </div>
            <!-- end: Main Menu -->
                        
            <!-- start: Content -->
            <div id="content" class="span10">
                <?php echo $content; ?>
            </div>
            <!-- end: Content -->
                
        </div><!--/fluid-row-->
        <div class="clearfix"></div>
        
        <!-- BEGIN: footer -->
        <footer>
            <p>
                <span style="text-align:left;float:left">&copy; 2013 <a href="http://email.haiausoft.com" alt="Haiaumail - Email marketing hiệu quả">HaiauMail</a></span>
                <span class="hidden-phone" style="text-align:right;float:right">
                    <img src="<?php echo $homeUrl;?>/img/logo_embed.png" />
                </span>
            </p>
        </footer>
        <!-- END: footer -->
                
    </div><!--/.fluid-container-->

    <?php
        // show notification
        foreach(Yii::app()->user->getFlashes() as $type => $msg){
            $this->ui->addScript(null, 'noty({text:"'.$msg.'",type:"'.$type.'"});');
        }
    ?>
</body>
</html>